Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query the caps before calling vaCopy #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XinfengZhang
Copy link
Contributor

refer to intel/libva#513
Signed-off-by: Carl Zhang [email protected]

printf("VPP is not supported by driver\n");
assert(0);
}
/* Check whether vaCopy is supported by driver */;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider adding new attribs reporting in vainfo.

va_status = vaGetDisplayAttributes(va_dpy, &va_disp_attr, 1);

CHECK_VASTATUS(va_status, "vaGetDisplayAttrib");
if(va_disp_attr.value == VA_ATTRIB_NOT_SUPPORTED || va_disp_attr.value == 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at line 540 we do:
option.bits.va_copy_mode = g_copy_method; // VA_COPY_MODE_BALANCE;
It would be better :

  1. to make it parametrized via cmd line:
  2. to check if the specified mode (even if it's hardcoded) matches attributes returned from vaGetDisplayAttributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants